let app = getApp()
Component({
    properties: {
      articleid: {
          type: String,
          observer: function(newVal, oldVal) {
            this.updateRate()
          }
        }
      },
      data:{
      
      },
    lifetimes: {
        attached: function () {
       }
      },
    methods: {
      backhome:function(){
        wx.redirectTo({
          url: '/yb_shopv2/entry/video-market/index',
        })
      },
      updateRate:function(){
        var that=this
        wx.request({
          url: app.globalData.siteroot,
           data: {
             do:'Article_ArticleInfo',
             id:that.data.articleid
          },
         success: function(res) {
           that.setData({
            detail:res.data.info
           })
           wx.setNavigationBarTitle({
            title:res.data.info.title
          })
         }
        })
      }
    }
});
